﻿using System.Web.Mvc;
using SilenthinkCommon.Extension;

namespace Web.Areas.Auction
{
    public class AuctionAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Auction";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            //context.Routes.MapConnection<BidConnection>("bid", "bid/{*operation}");

            context.Routes.MapSubDomainRoute(
                "AuctionDdefault", AreaName.ToLower(),
                "{controller}/{action}/{param}",
                new { controller = "Home", action = "Index", param = UrlParameter.Optional },
                new[] { "Web.Areas.Auction.Controllers" });
        }
    }
}
